const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports ={
    mode:'development',
    entry: '.src/app.js',
    output: {
        clean: true
    },
    plugins: [
        new HtmlWebpackPlugin()
    ],
    devtool: 'cheap-module-source-map',
    module:{
        rules:[
            {
                test:/\.js$/,
                use:['babel-loader','eslint-loader']
            }
        ]
    },
    devServer: {
        client:{
            overlay:true
        }
    }
}